package com.taxicall.udptransport;

import java.io.IOException;
import java.net.DatagramPacket;

public interface UdpReceiver {
	
//	private byte[] buffer;
//	private DatagramPacket inPacket;
//	
//	public UdpReceiver(int port) throws SocketException  {
//		buffer = new byte[4096];
//		inPacket = new DatagramPacket(buffer, buffer.length);
//		socket = new DatagramSocket(port);
//	}
//	
//	public DatagramPacket receive() throws IOException {
//		socket.receive(inPacket);
//		return inPacket;
//	}
	
	public DatagramPacket receive() throws IOException;
	
}
